<?php
/**
 * This page handles the logout of a user
 * Found at /su/logout
 * 
 * This page can only be accessed using mod_rewrite.
 */

    require_once('../SiteIncludes.GLOBAL.php');
    
    if(EclipseMDE::runningOnMod_Rewrite() === false) {
	// Security Guard, Do Not Let This be accessed by any other means than mod_rewrite
	$gVAR['e'] = '404';
	require_once('error_handler.php');
    }
    
    $TemplateEngine->setHasSidebar(false);
    $TemplateEngine->create_content_html($Templater->makeherounit('Bye!', 'You have been logged out.', '<a class="btn btn-primary btn-large" href="/">Home Page</a>'));
    $TemplateEngine->render();
?>